AutoSuspendHelper class¶
Attributes: [DebuggerDisplay("AutoSuspendHelper")]
Defined in
Namespace: ReactiveUI.Reactive
Assembly: ReactiveUI.Reactive.dll
Full name: ReactiveUI.Reactive.AutoSuspendHelper<T>
Modifiers: public
Summary¶
Bridges iOS lifecycle notifications into SuspensionHost so applications can persist and restore state without manually wiring UIKit events.
Applies to
net10.0-ios26.0, net10.0-macos26.0, net10.0-maccatalyst26.0, net10.0-tvos26.0
Class hierarchy
classDiagram
class AutoSuspendHelper~T~
class IEnableLogger {
<>
}
IEnableLogger <|.. AutoSuspendHelper~T~
class IDisposable {
<>
}
IDisposable <|.. AutoSuspendHelper~T~
Implements: IEnableLogger, IDisposable
Remarks¶
Instantiate AutoSuspendHelper inside your UIApplicationDelegate and forward the
FinishedLaunching, OnActivated, and DidEnterBackground events to the helper. The helper updates
the shared ISuspensionHost observables and takes care of requesting background time when persisting
application state.
Constructors¶
| Name | Summary |
|---|---|
| .ctor | Initializes a new instance of the [AutoSuspendHelper](# class. |
Properties¶
| Name | Summary |
|---|---|
| LaunchOptions | Gets the launch options captured from the most recent call to [FinishedLaunching](# Keys are... |
Methods¶
| Name | Summary |
|---|---|
| FinishedLaunching | Notifies the helper that launching finished so it can propagate [IsResuming](# |
| OnActivated | Notifies the helper that OnActivated occurred. |
| DidEnterBackground | Notifies the helper that DidEnterBackground was raised so that persistence can begin. |
| Dispose |